import request from '@/utils/request'

// 查询实训预约列表
export function listAppoint(query) {
    return request({
        url: '/pv/appoint/list',
        method: 'get',
        params: query
    })
}

// 查询实训预约详细
export function getAppoint(id) {
    return request({
        url: '/pv/appoint/' + id,
        method: 'get'
    })
}

// 新增实训预约
export function addAppoint(data) {
    return request({
        url: '/pv/appoint',
        method: 'post',
        data: data
    })
}

// 修改实训预约
export function updateAppoint(data) {
    return request({
        url: '/pv/appoint',
        method: 'put',
        data: data
    })
}

// 删除实训预约
export function delAppoint(id) {
    return request({
        url: '/pv/appoint/' + id,
        method: 'delete'
    })
}


// 发送短信通知-人数
export function smsSend_people_count(classId,time) {
    return request({
        url: '/pv/appoint/smsSend-people-count',
        data: {classId: classId,time: time},
        method: 'post'
    })
}

// 发送短信通知
export function smsSend(id,classId,time) {
    return request({
        url: '/pv/appoint/smsSend/' + id,
        data: {classId: classId,time: time},
        method: 'post'
    })
}
